package org.cttic.visualization.visualization.controller;

import org.cttic.visualization.visualization.service.ItineraryQuery;
import org.cttic.visualization.visualization.z_service.z_ItineraryQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author shkstart
 * @create 2020-04-29 17:44
 * 2.3.1车辆行程查询接口
 */
@RestController
@RequestMapping(value = "/itinerary")
@CrossOrigin
public class itineraryQueryController {

    @Autowired
    ItineraryQuery itineraryQuery;

//    @RequestMapping(value = "/itineraryQuery")
    public String itineraryQuery(@RequestBody String inputData){
        return itineraryQuery.itineraryQuery(inputData);
    }
    @Autowired
    z_ItineraryQuery z_ItineraryQuery;

    @RequestMapping(value = "/itineraryQuery")
    public String z_itineraryQuery(@RequestBody String inputData){
        return z_ItineraryQuery.itineraryQuery(inputData);
    }
}
